package com.mayikt.decorete;

/**
 * @author 蚂蚁课堂创始人-余胜军QQ644064779
 * @title: AbstractDecorator
 * @description: 每特教育独创第五期互联网架构课程
 * @date 2019/5/1421:17
 */
public class AbstractDecorator extends GatewayComponent {
    public AbstractDecorator(GatewayComponent gatewayComponent) {
        this.gatewayComponent = gatewayComponent;
    }

    public GatewayComponent gatewayComponent;

    public void service() {
        if (gatewayComponent != null)
            gatewayComponent.service();
    }

//    public void setGatewayComponent(GatewayComponent gatewayComponent) {
//        this.gatewayComponent = gatewayComponent;
//    }
}
